export default [
    {
      path: '/user',
      layout: false,
      routes: [
        {
          path: '/user',
          routes: [
            {
              name: 'login',
              path: '/user/login',
              component: './user/Login',
            },
          ],
        },
        {
          component: './404',
        },
      ],
    },
    {
      path: '/welcome',
      name: 'welcome',
      icon: 'smile',
      component: './Welcome',
    },
    {
        path: '/admin',
        name: 'admin',
        icon: 'crown',
        routes:[
            {
                path: '/admin/sub-page',
                name:'sub-page',
                icon: 'smile',
                component:'./Admin',
            },
        ]
    },
    {
      name: 'list.table-list',
      icon: 'table',
      path: '/list',
      component: './TableList',
    },
    {
      name: 'test-page',
      icon: 'table',
      path:'/testComponent',
      component: './TestPage/AntdComponent'
    },
    {
      path: '/',
      redirect: '/welcome',
    },
    {
      component: './404',
    },
  ];
  